package org.jeecg.modules.simulator.model.line.station.equipment;

import org.jeecg.modules.simulator.model.line.station.station.StationState;
import org.jeecg.modules.simulator.model.person.Person;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: gp2
 * @description:
 * @author: lydms
 * @create: 2024-08-20 09:36
 **/


public class StationEntryExitGate {


    @Getter
    @Setter
    //进出口名称
    String eegName;
    //所属车站的名称
    String belongStationName;
    @Getter
    @Setter
    //所属车站id
    String belongStationId;

    /**
     * 1、限流
     * 2、进站
     * 3、封闭
     */
    @Getter
    @Setter
    StationState stationState;
    @Getter
    @Setter
    int entrySpeed;//进站时长
    @Getter
    @Setter
    int exitSpeed;//出站

    @Getter
    @Setter
    int limitSpeed;

    /**
     * @description:每秒进站人数，速度
     *
     * @author: renzhg
     * @date: 2024/7/31 9:08
     **/
    int num_per_second = 100;

    @Getter
    @Setter
    Map<String, Person> willEntryPersonMap=new HashMap<>();





   public void releasePersonInputStation() {


   }


    public void limitPf(int seconds){

        int persons=willEntryPersonMap.size();

        if(persons>num_per_second){
//            um_per_second;e
        }else{

        }

    }

}
